#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "UsedHead.h"
#include <QMainWindow>
#include "user.h"
#include "userlist.h"
#include "frmlogin.h"
#include "frmuserinfo.h"
#include "frmabout.h"
#include "Game.h"
#include "gamesettings.h"
#include "ranking_list.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void find(int id);

private slots:
    void on_btnPeople_clicked();

    void on_actionSignOut_triggered();

    void on_actionLogin_triggered();

    void on_btnAi_clicked();

    void on_actionUserInfo_triggered();

    void on_btnRanking_clicked();

    void on_actionAbout_triggered();

private:
    void clearInfo();

    int id;
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
